package com.aaa.dao;


import com.aaa.dto.CarDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarDao extends BaseMapper<CarDto> {

    List<CarDto> listAllById(Integer userId);

    int carInsert(@Param("userId") Integer userId,@Param("goodsId") Integer goodsId,@Param("buyCount") Integer buyCount);

    int deleteCarByCarId(Integer carId);

    int updateCountByGoodsId(@Param("goodsId") Integer goodsId, @Param("buyCount") Integer buyCount);
}
